package com.itheima.dao;

import com.itheima.domain.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface IUserDao {

    @Insert("insert into users (username,password,telephone,state) values (#{username},#{password},#{telephone},1) ")
    void register(Users users);
    @Select("select * from users where username=#{username} and password=#{password}")
    Users login(@Param("username")String username,@Param("password")String password);


    void AAfind();
}
